import { localData } from 'kuan-utils'

const { create } = localData

const authority = create('renren_admin')

export function changeCode(code) {
  const user = authority.get() || {}
  user.region_code = code
  authority.set(user)
  return user
}
export default authority
